package com.xs.valid.demo.common;

/**
 * 返回json格式
 *
 * @param <T>
 * @author www
 */
public class ResultJson<T> {

    private HeaderBean header;
    private T data;

    public ResultJson() {
    }

    public ResultJson(HeaderBean header, T data) {
        this.header = header;
        this.data = data;
    }

    public HeaderBean getHeader() {
        return header;
    }

    public void setHeader(HeaderBean header) {
        this.header = header;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public static class HeaderBean {

        private int status;
        private String message;

        public HeaderBean(int status, String message) {
            this.status = status;
            this.message = message;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getMessage() {
            return message;
        }

        public void setMessage(String message) {
            this.message = message;
        }
    }

    public static class DataBean {
    }
}
